class UserWallet < ActiveRecord::Base
  belongs_to :user, :dependent => :destroy
  belongs_to :wallet

  validates_presence_of :user_id
  validates_presence_of :wallet_id
  validates_uniqueness_of :wallet_id, :scope => :user_id
end
